/*******************************************************************
* ++
* Author        :	ThienTN
* Description   :	NhanVien.h in project HRManagement
* 
* Mod. History  :	25/07/2012 - ThienTN
*
* --
*******************************************************************/
#ifndef EMPLOYEE_H
#define EMPLOYEE_H

#include <fstream>
#include "Utility.h"
using namespace std;

class CEmployee
{
private:
	/*
	 * Property of program
	 */	
	string m_wszID;
	string m_wszName;
	Date m_birthDay;
	string m_wszAddress;
	float m_nSalary;
public:
	/*
	 * Prototype of program
	 */
	void InputEmployee(CEmployee *pEmployee);
	void AutoInputEmployee(List *pList);
	void WriteEmployee(ofstream &f);
	void addTail(List *pList, Node *pNode);
	void OutputEmployee(List *pList);
	void Display(CEmployee *pEmployee);
	void QuickSortBirthday (List *pList);
	void QuickSortSalary (List *pList);
	bool CompareBirthday(CEmployee *a, CEmployee *b);
	void RemoveEmployee(List *pList);
	friend bool CheckBirthday(CEmployee *pEmployee);
	CEmployee(void);
	~CEmployee(void);
};
#endif
